package com.swlz.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.swlz.annotations.Id;
import com.swlz.annotations.Name;
/**
 * <pre>
 * 实体类
 * 行政区域
 * TableName : SYS_AREAS
 * ClassName : com.swlz.entity.Areas
 * Author : swlz
 * E-Mail : 2233875735@qq.com
 * Date : 2020-06-15 17:10:42
 * Version : 1.0
 * Copyright 2020 swlz.top Inc. All rights reserved. 
 * Warning: this content is only for internal circulation of the company. It is forbidden to divulge it or use it for other commercial purposes
 * </pre>
 **/
@Name("SYS_AREAS")
public class Areas  {


	/**
	 * <pre>行政区域编号 - ID</pre>
	 **/
	@Id
	private String id;
	/**
	 * <pre>行政区域名称 - NAME</pre>
	 **/
	private String name;
	/**
	 * <pre>父级行政区域编号 - PID</pre>
	 **/
	private String pid;


	/**
	 * <pre>获取行政区域编号</pre>
	 **/
	public String getId() {
        return id;
    }

	/**
	 * <pre>设置行政区域编号</pre>
	 **/
    public void setId(String id) {
        this.id = id;
    }

	/**
	 * <pre>获取行政区域名称</pre>
	 **/
	public String getName() {
        return name;
    }

	/**
	 * <pre>设置行政区域名称</pre>
	 **/
    public void setName(String name) {
        this.name = name;
    }

	/**
	 * <pre>获取父级行政区域编号</pre>
	 **/
	public String getPid() {
        return pid;
    }

	/**
	 * <pre>设置父级行政区域编号</pre>
	 **/
    public void setPid(String pid) {
        this.pid = pid;
    }

    @Override
    public String toString() {
    	StringBuffer str = new StringBuffer(super.toString());
    	str.append(" [");
    	str.append("id=");
    	str.append(id);
    	str.append(", ");
    	str.append("name=");
    	str.append(name);
    	str.append(", ");
    	str.append("pid=");
    	str.append(pid);
    	str.append(", ");
    	str.append("]");
    	return str.toString();
    }
}